package com.fu.web.mapper;

import com.fu.web.entity.prescription;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component

public interface prescriptionMapper {
    int deleteByPrimaryKey(@Param("prescriptionId") Integer prescriptionId, @Param("durgId") Integer durgId);

    int insert(prescription record);

    int insertSelective(prescription record);

    prescription selectByPrimaryKey(@Param("prescriptionId") Integer prescriptionId, @Param("durgId") Integer durgId);
    List<prescription> selectAll();
    int updateByPrimaryKeySelective(prescription record);

    int updateByPrimaryKey(prescription record);
}